home *** CD-ROM | disk | FTP | other *** search
/ Money in the 90s / Money in the 90s - Windows (Laser Resources, Inc.)(1994).iso / inst.bat < prev    next >
DOS Batch File  |  1994-01-10  |  1KB  |  51 lines

  1. @echo off
  2. rem 2nd pass?
  3. if (%0) == (hinst)   goto HINST
  4. if (%0) == (HINST)   goto HINST
  5.  
  6. rem 1st pass!
  7. if (%1) == () goto usage
  8. if (%2) == () goto usage
  9. if (%3) == () goto usage
  10.  
  11. md %2%3
  12. %2
  13. cd %2%3
  14. copy %1\inst.bat %2%3\hinst.bat
  15. hinst %1
  16. rem This is pass 2 (goes to :HINST)
  17.  
  18. :HINST
  19. copy %1\PKUNZIP.EXE
  20. pkunzip -od %1\SI.ZIP %2%3
  21. if errorlevel 1 goto ziperr
  22.  
  23. pkunzip -od %1\RESEARCH.ZIP %2%3
  24. if errorlevel 1 goto ziperr
  25. del PROGRAM\SIPATCH.200
  26. ren PROGRAM\CONFIGA.BTR _CONFIGF.BTR
  27.  
  28. :zipdone
  29. cls
  30. echo Installation complete!
  31. echo Please type SMART to begin using your program.
  32. echo Thank you for purchasing our product.
  33.  
  34. goto done
  35.  
  36. :usage
  37. echo To use this program, type:
  38. echo    INST s: d: \directory
  39. echo Where  s:           is the floppy drive you're installing from (usually A:),
  40. echo        d:           is the hard drive you're installing to (usually C:), and   
  41. echo        \directory   is the directory where the files will be installed
  42. echo                     (e.g. \INVESTOR)
  43. goto done
  44.  
  45. :ziperr
  46. echo A diskette error occurred during installation...
  47. echo .
  48. echo You should contact Reality Technologies Technical Support for assistance.
  49.  
  50. :done
  51.